#!/usr/bin/env python

# default time format used by server, accepted by functions like time.strftime
DEFAULT_TIME_FORMAT = "%Y-%m-%d %H:%M:%S"

#Cookie type constants
COOKIE_TYPE_SESSION = 0
COOKIE_TYPE_MACHINE = 1

#Cookie state constants
COOKIE_STATE_ACTIVE = 1
COOKIE_STATE_INACTIVE = 3

#Principal state constants
PRINCIPAL_STATE_PENDING = 0
PRINCIPAL_STATE_ACTIVE = 1
PRINCIPAL_STATE_BANNED = 2
PRINCIPAL_STATE_EXPIRED = 3

#Ibroker constants
IBROKER_STATE_ACTIVE = 1
IBROKER_STATE_INACTIVE = 3